New Functions in Week 8

separate

{tidyr}

Split columns

is.na

{base}

Check if a value is NA/elements of vector are NA

summarize

{dplyr}

Collapse the dataset to a summary statistic (American-spelling alias of summarise)

n

{dplyr}

The number of observations in the current group.

write.csv

{utils}

write a csv file to a data frame

as.numeric

{base}

Coerce a vector to numeric

spread

{tidyr}

Spread a key-value pair across multiple columns

write_dta

{haven}

Write Stata files

read_dta

{haven}

Read a .dta file (Stata data)

as.character

{base}

Coerce a vector to character

data.frame

{base}

Create a data.frame from vectors

save

{base}

Save R objects

The end!